Skip to content

Label images for classification ​

In a classification dataset, labeling means giving every image one tag. In this guide you tag images one by one with the mouse and with the keyboard, and then tag a whole selection at once.

What you will learn

  • How to give an image its tag
  • How to label quickly with the keyboard
  • How to tag many images at once from the grid

Before you start

You need a classification dataset with images and tags. See Upload images to a dataset and Create and edit tags.

1. Open the first image ​

Open the dataset and click «Labeling». The images nobody has labeled yet are «Unclassified». Click the first one to open it in the editor.

2. Give the image its tag ​

In the «Labels» panel, on the right, click the tag that describes what the image shows. The tag is saved at once and the image counts as reviewed. Click another tag to change it.

Give the image its tag

3. Label with the keyboard ​

Each tag has a number next to it: press it to assign the tag. D goes to the next image and A to the previous one, so your hand never has to leave the keyboard. Two images more:

Label with the keyboard

4. Go back to the grid ​

Click «Exit», at the top right, to go back to the image grid. The images you have just labeled show their tag.

5. Select images of the same class ​

To tag many images at once, select them in the grid: tick the box in the corner of each card. Here, with «Unclassified» on the right, the grid shows only the images still waiting for a tag.

Select images of the same class

6. Assign the tag ​

In the bar at the bottom, click «Assign tag», choose the tag and click «Confirm». Every selected image gets it.

Assign the tag

7. Check the counts ​

Click «Confirm». The images leave «Unclassified», and the counts on the right show how many images each tag has. Keep them balanced: a tag with few images teaches the model little.

Check the counts

Next steps ​

Recorded on Rosepetal release 1.8.15.